<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>搜索医生</title>
    <link href="../css/common.css" rel="stylesheet" type="text/css" />
    <link href="../css/search%20doctor.css" rel="stylesheet" type="text/css"/>
    <script src="../ExternalJs/jquery-2.2.4.min.js"></script>
    <script src="../js/conmon.js"></script>
</head>
<body>
<header id="app">
    <form action="" onsubmit="return check()">
        <input type="search" placeholder="搜索医生" v-model="message"/>
    </form>
    <p>取消</p>
    <p>{{message}}</p>
</header>
<section class="total"  id="center" >
    <p>热门搜索</p>
    <section class="center"v-for="item in items">
        <section><a href="#">{{item.name}}</a><span>{{item.d_id}}</span></section>
        <!--<section><a href="#" v-if="item.d_id%3=='1'">{{item.name}}</a><span>{{item.d_id}}</span></section>-->
        <!--<section><a href="#" class="mid" v-if="item.d_id%3=='2'">{{item.name}}</a></a><span>{{item.d_id}}</span></section>-->
    </section>
</section>
<section class="header">
    <p class="head">医生</p>
</section>
<section id="mainPart" >
    <section class="mainPart" v-for="item in items" >
        <section class="docListMember">
            <img v-if="item.nic_thumb != ''" v-bind:src="item.nic_thumb">
            <img v-if="item.nic_thumb ==''" src="../images/userDefault.png">
            <section class="rightPart">
                <p>
                    <span>{{item.name}}</span><span>{{item.zhiwu}}</span>
                </p>
                <p>
                    <span>{{item.hospital_name}}</span>
                    <span>{{item.keshi}}</span>
                </p>
                <p><img src="../images/star.png"><span>{{item.score}}</span><span>接诊量: {{item.response_times}}</span></p>
                <p>{{item.shan_chang}}</p>
                <p class="id">{{item.d_id}}</p>
            </section>
        </section>
    </section>
</section>

<script>
    function check(){
        return false;//阻止表单提交
        //return true;允许表单提交
    }
</script>
<script src="../ExternalJs/vue.js"></script>
<script src="../js/searchDoctor.js"></script>
</body>
</html>